package com.stx.test.object;

/**
 * packageName com.stx.test.object
 *
 * @author YangYi
 * @className MyClass
 * @date 2025/9/17
 * @description TODO
 */
public class MyClass implements Cloneable{
    private int value;

    public MyClass(int value) {
        this.value = value;
    }

    // 重写 clone() 方法
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone(); // 调用 Object 类的 clone() 方法
    }

    public int getValue() {
        return value;
    }
}
